//
//  Student.h
//  OC08_类的拓展
//
//  Created by Hanlingyu on 16/7/13.
//  Copyright © 2016年 ltq. All rights reserved.
//

#import <Foundation/Foundation.h>

#pragma mark - 1. 规定了协议内容
@protocol GetMacBook <NSObject>

@required
// 购买macBook
- (NSString *)buyMacBook:(NSString *)money;
@optional
// 开发票
- (NSString *)drawBill;

@end

@interface Student : NSObject
#pragma mark - 2. 设定委托方
// 委托方的写法
@property (nonatomic, weak)id<GetMacBook> delegate;


- (void)seeWeChat;

@end
